import Vue from 'vue'
import Router from 'vue-router'
import GoodList from '@/pages/goodList/GoodList'
import Cart from '@/pages/cart/Cart'
import Address from '@/pages/address/Address'
import OrderConfirm from '@/pages/address/OrderConfirm'
import OrderSuccess from '@/pages/address/OrderSuccess'




Vue.use(Router)

export default new Router({
	routes: [{
			path: '/',
			name: 'GoodList',
			component: GoodList
		},
		{
			path: '/cart',
			name: 'Cart',
			component: Cart
		},
		{
			path: '/address',
			name: 'Address',
			component: Address
		},
		{
			path: '/orderConfirm',
			name: 'OrderConfirm',
			component: OrderConfirm
		},
		{
			path: '/orderSuccess',
			name: 'OrderSuccess',
			component: OrderSuccess
		}
	]
})